package de.gameduell.framework.gui.animation {
	import de.gameduell.framework.gui.animation.CombinedTween;
	import de.gameduell.framework.gui.animation.Tweenable;
	
	/** 
	 * @author sdur
	 * 
	 * @param tweenedObject  the object that will be tweened
	 * @param EaseType		 easytype for the tween
	 * @param startValue     the value from wich the animation starts, 1 is equal to 100% of the original Object
	 * @param endValue		 the point where the animation finishs, 1 is equal to 100% of the original Object
	 * @param useSeconds	 flag to asign if the animation is timebased or framebased
	*/
	public class ScaleTween extends CombinedTween implements Tweenable {

		public function ScaleTween(tweenedObject:Object,EaseType:Function, startValue:Number, endValue:Number, duration:Number, useSeconds:Boolean) {
			super();
			addTween(new GDTween(tweenedObject, "scaleX", EaseType, startValue, endValue, duration, useSeconds));
			addTween(new GDTween(tweenedObject, "scaleY", EaseType, startValue, endValue, duration, useSeconds));
		}
	}
}
